package com.anttribe.components.db.metadata.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.List;

/**
 * @author zhaoyong
 * @date 2021/10/29 0029
 */
@Getter
@Setter
@ToString
public class DbIndex {

    /**
     * 索引名称
     */
    private String indexName;

    /**
     * 类型
     */
    private DbIndexType indexType;

    /**
     * 列
     */
    private List<String> columns;

    /**
     * 返回唯一值的索引
     */
    private boolean unique;

}
